<?php

declare(strict_types=1);

return [
    //签名加密KEY
    'api_key' => 'ajwl_nightvoice',
    //官方通知账号
    'officialImAccount' => env('APP_DEBUG')
        ? env('IM_ACCOUNT_OFFICIAL', 'dfbfc4a9ddfbf50d6b3349e7a97f0101')
        : env('IM_ACCOUNT_OFFICIAL', 'dfbfc4a9ddfbf50d6b3349e7a97f0101'),
    //系统推送账号
    'systemImAccount' => env('APP_DEBUG')
        ? env('IM_ACCOUNT_SYSTEM', '56bb8449aba0e83c4cd30e57fab20c9d')
        : env('IM_ACCOUNT_SYSTEM', '56bb8449aba0e83c4cd30e57fab20c9d'),

    //微信申请 - 推送账号
    'wechatApplyImAccount' => env('APP_DEBUG')
        ? env('IM_ACCOUNT_WECHAT', '65ebaa601921630a636201c50f9db5cf')
        : env('IM_ACCOUNT_WECHAT', '65ebaa601921630a636201c50f9db5cf'),

    //小秘书推送账号
    'xiaomishuImAccount' => env('APP_DEBUG')
        ? env('IM_ACCOUNT_XIAOMISHU', '9748632a03a999f14fd0c94056c4aa24')
        : env('IM_ACCOUNT_XIAOMISHU', '9748632a03a999f14fd0c94056c4aa24'),

    //官方通知账号
    'officialUserId' => env('APP_DEBUG') ? env('OFFICIAL_UID', '3') : env('OFFICIAL_UID', '3'),
    //系统推送账号
    'systemUserId' => env('APP_DEBUG') ? env('SYSTEM_UID', '7') : env('SYSTEM_UID', '8'),
    //客服微信
    'kefu_wechat' => env('KEFU_WECHAT', 'jinnuo9131'),
    //客服
    'kefu_uid' => [env('KEFU_UID', 10), env('KEFU_UID2', 10)],

    //系统账号内部ID
    'system_account' => [
        1,2,3,4,5,6,7,8,9,10,11
    ],

    /**
     * 语音收费金币设置
     */
    'coin_setting' => [
        ['coin' => 10, 'charm_limit' => 0],
        ['coin' => 20, 'charm_limit' => 10],
        ['coin' => 25, 'charm_limit' => 100],
        ['coin' => 30, 'charm_limit' => 200],
        ['coin' => 35, 'charm_limit' => 200],
        ['coin' => 40, 'charm_limit' => 300],
        ['coin' => 45, 'charm_limit' => 300],
    ],

    /**
     * 视频收费金币设置
     */
    'video_coin_setting' => [
        ['coin' => 10, 'charm_limit' => 0],
        ['coin' => 20, 'charm_limit' => 10],
        ['coin' => 25, 'charm_limit' => 100],
        ['coin' => 30, 'charm_limit' => 200],
        ['coin' => 35, 'charm_limit' => 200],
        ['coin' => 40, 'charm_limit' => 300],
        ['coin' => 45, 'charm_limit' => 300],
    ],

    /**
     * 私聊收费金币设置
     */
    'chat_coin_setting' => [
        ['coin' => 0, 'charm_limit' => 0],
        ['coin' => 1, 'charm_limit' => 0],
        ['coin' => 2, 'charm_limit' => 50000],
        ['coin' => 3, 'charm_limit' => 200000],
    ],
    //测试
    'chat_charge_start' => env('APP_DEBUG') ? '2021-09-06' : '2021-09-09 12:00:00',

    /**
     * 金币和人民币兑换
     */
    'coin_rate' => 10,

    /**
     * 提现手续费
     */
    'withdraw_fee_rate' => 0.065,

    /**
     * 提成配置
     */
    'commission' => [
        //每笔消费抽成
        'consume' => 0.45,
        //提现抽成
        'withdrawal' => 0,
    ],

    /**
     * 新手福利的首充免费时长（分钟）
     */
    'new_commer_free' => 1,

    /**
     * 天天福利免费时长
     */
    'new_recharge_free' => 1,

    /**
     * 剩余时间提醒（分钟）
     */
    'tip_remain_minutes' => 3,

    /**
     * 新手免费聊天时间（分钟）
     */
    'new_free_minutes' => 10,

    /**
     * 新手免费聊天的有效期（天）
     */
    'new_free_expire' => env('APP_DEBUG') ? 100 : 5,

    /**
     * 上线通知列表 - 通知间隔(秒)
     */
    'online_rec_interval' => env('APP_DEBUG') ? 1800 : 1800,

    /**
     * 订单商品配置
     */
    'recharge' => env('APP_DEBUG') ? [
        ['subject_id' => 1, 'coin' => 66, 'rmb' => 0.01, 'subject_name' => '66金币', 'extra' => '', 'send' => 0],
        ['subject_id' => 2, 'coin' => 208, 'rmb' => 0.02, 'subject_name' => '208金币', 'extra' => '', 'send' => 0],
        ['subject_id' => 3, 'coin' => 768, 'rmb' => 0.03, 'subject_name' => '768金币', 'extra' => '', 'send' => 0],
        ['subject_id' => 4, 'coin' => 2368, 'rmb' => 296, 'subject_name' => '2368金币', 'extra' => '', 'send' => 0],
        ['subject_id' => 5, 'coin' => 2928, 'rmb' => 366, 'subject_name' => '2928金币', 'extra' => '', 'send' => 0],
        ['subject_id' => 6, 'coin' => 4128, 'rmb' => 516, 'subject_name' => '4128金币', 'extra' => '', 'send' => 0],
        ['subject_id' => 7, 'coin' => 8768, 'rmb' => 1096, 'subject_name' => '8768金币', 'extra' => '', 'send' => 0],
        ['subject_id' => 8, 'coin' => 23888, 'rmb' => 2986, 'subject_name' => '23888金币', 'extra' => '', 'send' => 0],
    ] : [
        ['subject_id' => 1, 'coin' => 77, 'rmb' => 9, 'subject_name' => '77金币', 'extra' => '', 'send' => 0],
        ['subject_id' => 2, 'coin' => 325, 'rmb' => 38, 'subject_name' => '325金币', 'extra' => '', 'send' => 0],
        ['subject_id' => 3, 'coin' => 930, 'rmb' => 108, 'subject_name' => '930金币', 'extra' => '', 'send' => 0],
        ['subject_id' => 4, 'coin' => 2825, 'rmb' => 328, 'subject_name' => '2825金币', 'extra' => '', 'send' => 0],
        ['subject_id' => 5, 'coin' => 5175, 'rmb' => 588, 'subject_name' => '5175金币', 'extra' => '', 'send' => 0],
        ['subject_id' => 6, 'coin' => 7910, 'rmb' => 898, 'subject_name' => '7910金币', 'extra' => '', 'send' => 0],
        ['subject_id' => 7, 'coin' => 14768, 'rmb' => 1668, 'subject_name' => '14768金币', 'extra' => '', 'send' => 0],
        ['subject_id' => 8, 'coin' => 28512, 'rmb' => 3168, 'subject_name' => '28512金币', 'extra' => '', 'send' => 0],
    ],

    /**
     * Apple内购的配置
     */
    'recharge_apple' => [
        ['subject_id' => 1000, 'coin' => 100, 'rmb' => 12, 'subject_name' => '100金币', 'extra' => ''],
        ['subject_id' => 1001, 'coin' => 250, 'rmb' => 30, 'subject_name' => '250金币', 'extra' => ''],
        ['subject_id' => 1002, 'coin' => 500, 'rmb' => 60, 'subject_name' => '500金币', 'extra' => ''],
    ],

    /**
     * 技能
     */
    'skills' => [
        1 => ['skill' => '游戏达人', 'icon' => 'icon/game.png', 'desc' => '语音连麦给他人教学或陪同一起学习游戏'],
        ['skill' => '恋爱达人', 'icon' => 'icon/love.png', 'desc' => '语音连麦给他人分享恋爱技巧或约会注意事项'],
        ['skill' => '唱歌达人', 'icon' => 'icon/sing.png', 'desc' => '语音连麦给他人教学或陪同一起学习唱歌'],
        // ['skill' => '哄睡达人', 'icon' => 'icon/sleep.png', 'desc' => '语音连麦给他讲故事唱歌哄其入睡'],
        // ['skill' => '叫醒达人', 'icon' => 'icon/wakeup.png', 'desc' => '语音连麦叫他起床'],
    ],

    /**
     * 私聊设置
     */
    'chat' => [
        //每天限制开启的私聊次数
        'daily_times' => 50,
        //私聊消息数限制
        'msg_limit' => env('APP_DEBUG') ? 50 : 50,
        //私聊消息数限制（未回复）
        'msg_limit_noback' => env('APP_DEBUG') ? 1000 : 0,
    ],

    /**
     * 随心聊
     */
    'quick_call' => ['video' => 30, 'voice' => 15],

    /**
     * 天天福利
     */
    'free_call' => ['video' => 20, 'voice' => 10],

    /**
     * 呼叫白名单账号（开启则仅呼叫白名单内的账号）
     */
    'call_whitelist' => [
        //测试环境
        'dev' => [
            'enable' => env('CALL_WHITELIST_ENABLE', false),
            //随心聊
            'quick_call' => [279],
            //免费福利
            'free_daily' => [279],
            //免费福利-主播
            'free_daily_host' => [],
        ],
        //生产环境
        'production' => [
            'enable' => env('CALL_WHITELIST_ENABLE', false),
            //随心聊
            'quick_call' => [],
            //免费福利
            'free_daily' => [],
            //免费福利-主播
            'free_daily_host' => [],
        ],
    ],

    //是否开启推送，名义礼物，上线提醒等
    'online_tip_enable' => env('ONLINE_TIP_ENABLE', true),
    //需要排除的渠道
    'exclude_channel' => env('EXCLUDE_CHANNEL', '1002'),
    //需要排除的版本
    'exclude_version' => env('EXCLUDE_VERSION', '99.2.0'),
    //是否展示搭讪 1展示，0不展示
    'show_accost_100' => 0,
    'show_accost_101' => 0,

    /**
     * 用户标签最多可设置
     */
    'user_tag_max' => 10,

    //充值限制
    'pay_limit' => [

    ],
    'customerService' => [
        'f3e698f88ff5b6ae938c2f132de7cbaa',//男客服
        'f3e698f88ff5b6ae938c2f132de7cbaa',//女客服
    ],
    'limit_hidden_city' => '',
    'limit_hidden_city_string' => "'合肥'",
    'limit_hidden_city_array' => [
        '合肥'
    ],
    //设备号白名单
    'device_id_unlimited' => [
        '31341215150e8bedafbb35bd9827a45d',
        'f6e67ed2010433a5dddf109ac4df7c58',
        'c7840ed00ffce93c7f0ddaee07def4de',
        '1ccda4bcf12224d6ba1c04b5fb8f2a98',
        'a607132e58a6d5714200b51663710269',
        '8a71f1bfea57c36e7d24544255981c5e',
        '3cef667fe79aa2a2d80160ea0d49593f',
	'c1deffd4404e976b7f71d42d9b932759',
	'e46b87a41526c9e9df8c332de1d75bc6'
    ],
    //ip注册白名单
    'ip_unlimited' => [
        '14.150.172.161',
        '113.87.82.16',
        '113.87.82.219',
        '203.168.18.230',
        '113.87.81.126',
        '113.87.82.238',
        '203.168.9.167'
    ],
    //屏蔽渠道
    'forbidEntrance' => [

    ],
    //我的功能屏蔽邀入口
    'forbidEntrance_invitation' => [
        1013 => '1.1.1'
       /* '1000' => '1.1.2',
        '1001' => '1.1.2',
        '1002' => '1.1.2',
        '1003' => '1.1.2',
        '1004' => '1.1.2',
        '1005' => '1.1.2',
        '1006' => '1.1.2',
        '1007' => '1.1.2',
        '1008' => '1.1.2',*/
    ],
];
